/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkg1241316_webbrowser;

import java.util.ArrayList;
import java.util.List;
import org.jsoup.nodes.Attribute;
import org.jsoup.nodes.Attributes;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

/**
 *
 * @author Administrator
 */
public class NodeTree {

    private String TenNode;
    private Element infomationNode;
    private Elements DanhSachNodeCon;

    public String getTenNode() {
        return TenNode;
    }

    public Elements getDanhSachNodeCon() {
        return DanhSachNodeCon;
    }

    public Element getInfomationNode() {
        return infomationNode;
    }

    public void setDanhSachNodeCon(Elements DanhSachNodeCon) {
        this.DanhSachNodeCon = DanhSachNodeCon;
    }

    public void setTenNode(String TenNode) {
        this.TenNode = TenNode;
    }

    public void setInfomationNode(Element infomationNode) {
        this.infomationNode = infomationNode;
    }

    @Override
    public String toString() {
        Attributes attrs = this.infomationNode.attributes();
        String AttributesString = "";
        for (Attribute item : attrs) {
            String temp = item.html();
            if (temp != null) {
                AttributesString += " " + temp;
            }
        }
        return this.TenNode + AttributesString;
    }
}
